<ul class="heroes">
  <li *ngFor="let hero of heroes" (click)="onSelect(hero)"
      [class.selected]="hero === selectHero">
    <span class="badge">{{hero.id}}</span> {{hero.name}}
  </li>
</ul>
<div *ngIf="selectHero">
  <h2>
    {{selectHero.name}}
  </h2>
  <button (click)="gotoDetail()">英雄详情</button>
</div>

